package com.by.bean.house;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.by.bean.parkspace.ParkSpace;
import com.by.bean.resident.Resident;
import com.by.bean.storage.Storage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * 房屋表
 */
@Data
@ApiModel("房屋管理")
@TableName("g_house")
public class House {
    @ApiModelProperty("id")
    @TableId
    int id;

    @ApiModelProperty("楼座名称")
    String tname;

    @ApiModelProperty("单元")
    String unit;

    @ApiModelProperty("房间号")
    String houseId;

    @ApiModelProperty("房屋用途")
    int purpose;

    @ApiModelProperty("建筑面积")
    int buildArea;

    @ApiModelProperty("公摊面积")
    int shareArea;

    @ApiModelProperty("实用面积")
    int netArea;

    @ApiModelProperty("房间户型")
    String room;

    @ApiModelProperty("车位号")
    String parkCode;

    @ApiModelProperty("房屋状态")
    int status;

    @ApiModelProperty("备注")
    String note;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    String createTime; //添加时间

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    String addUser;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    Storage storage;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    ParkSpace parkSpace;

    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    List<Map> resident;
}
